package pms.dao;

import pms.entity.Medicine;
import pms.entity.Order;
import pms.entity.Supplier;

import java.util.List;

public interface OrderDao {
    boolean addMedicineByNecessity(Order order);//添加必需的药品

    List<Medicine> selectMedicineByNecessity();//查询必需的药品

    List<Supplier> selectAllSupplier();//查询所有供应商的信息

    boolean updateSupplierById(Supplier supplier);//通过ID更新供应商的信息

    boolean judgeIfNeedToPurchaseExtraMedicine(Medicine medicine);//通过比较库存和阈值判断某种药是否需要补货

    Supplier selectSupplierById(Supplier supplier);//通过ID查询某个供货商

    Supplier selectSupplierById(Integer supplier_id);//通过ID查询某个供应商

    Medicine selectMedicineById(Integer medicine_Id);//通过ID查询某种药

    Supplier compareSupplierToGetBestPrice(Integer medicine_id);//通过比较某种药的每个供货商得到最便宜的价格

    boolean deleteProblemSupplierById(Supplier supplier_id);//通过ID删除某个有问题的供货商
}
